<?php
/**
 * Created by PhpStorm.
 * User: 李迪
 * Date: 2019/2/21
 * Time: 20:39
 */
namespace App\Services\Homepage;

use App\Model\Banner;
use App\Model\Company;
use App\Services\CommonService;

class NewService extends CommonService
{
    public $banner;
    public $company;

    public function __construct()
    {
        $this->banner = new Banner();
        $this->company = new Company();
    }

    //获取轮播图数据
    public function getAll()
    {
        return $this->banner->getList();
    }
    
    //获取企业列表
    public function getCompany()
    {
        return $this->company->getAll();
    }
    
    //获取热门企业
    public function getHotCompany()
    {
        return $this->company->getHot();
    }
}